﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Test.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Content.Action.Test"
    Title="Action测试" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    Action测试
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <fieldset>
        <legend>Action信息</legend>
        <table>
            <tr>
                <td class="edit_form_item_title" width="90px">
                    <span class="required">Action KEY：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:Label runat="server" ID="lab_Key"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:Label runat="server" ID="lab_Title"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">类型：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:Label runat="server" ID="lab_Type"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">参数：</span>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txt_Parms" Width="300px"></asp:TextBox>
                    多个参数使用逗号","分隔，如: 12,goods
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title" valign="top">
                    <span class="required">脚本：</span>
                </td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txt_Hql" TextMode="MultiLine" Width="800" Height="30" ></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <div class="action_bar">
        <asp:Button ID="btn_Test" runat="server" Text="执行测试" OnClick="btn_Test_Click" />
        <input type="button" onclick="window.location.href=window.location.href" value="重置" />
        <input type="button" onclick="window.location.href='Edit.aspx?id=<%=Request.QueryString["id"] %>'" value="修改该Action" />
        <input type="button" onclick="window.location.href='List.aspx'" value="取消" />
    </div>
    <fieldset>
        <legend>测试结果</legend>
        <table>
            <tr>
                <td class="edit_form_item_title" valign="top" width="90px">
                    <span class="required">结果：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Result" TextMode="MultiLine" Width="800px" Height="200px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
